import { defineComponent, isReactive, onMounted, ref } from "vue";
import { RouterView } from "vue-router";
import styles from "./App.module.scss";
import HelloWorld from "./components/HollewView";

export default defineComponent({
  name: "renderDom",
  setup() {
    onMounted(() => {
      document.documentElement.setAttribute(
        "theme",
        localStorage.getItem("theme")! || "dark"
      );
    });
    return () => <RouterView></RouterView>;
  },
});
